home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / ease-3.5 / test / README < prev    next >
Encoding:
Text File  |  1991-02-26  |  1.5 KB  |  44 lines

  1. This is my little package to work out what is going on inside sendmail.
  2. It consists of a sendmail configuration file and a shell script. The sendmail
  3. configuration file was created with ease (see previous messages in net.mail
  4. about ease - i think it's due in mod.sources). The ease source is included.
  5.  
  6. What this is all about:
  7.  
  8.     I was having difficulty creating a sendmail.cf. So, I wrote a
  9. sendmail.cf whose sole function was to tag an address as it went through the
  10. ruleset. I coupled this with a little shell script, called args, which snarfs
  11. it's arguments (and stdin) and write them to a log file (/tmp/log is what I
  12. have used - you can alter it to taste, bearing in mind that it will probably
  13. have to suid to write to your directory :-()
  14.  
  15. What do you do:
  16.  
  17.     Unpack all this junk. You should have test.mc, test.cf, args and
  18. README. Put args in your search path. Create a dummy mail message. It helps
  19. to know how you mailer calls sendmail. I used args to find out. (I briefly
  20. replaced /usr/lib/sendmail with args and sent some mail). Call sendmail with
  21. the dummy mail item as stdin. ie:
  22.  
  23.     /usr/lib/sendmail -Ctest.cf foobar <<eof
  24.     To: foobar
  25.     Subject: test
  26.  
  27.     test mail
  28.     eof
  29.  
  30. then have a look at what is in /tmp/log
  31.  
  32. Thats all there is folks. I also use args with real configuration files, so
  33. that I can test them without disrupting the mail service through my machine.
  34. If you have any problems with this stuff, mail me and I'll try and help.
  35.  
  36.     Simon Kenyon
  37.     The National Software Centre,
  38.     28 Enterprise Centre,
  39.     Pearse Street,
  40.     Dublin 2
  41.     IRELAND
  42.     +353 1 716255
  43.     simon@einode.UUCP
  44.